package com.example.test.advice.第六章_枚举和注解.建议85_小心switch带来的空值异常;

public enum Season {
    Spring,Summer,Autumn,Winter;

    public static Season getComfortableSeason(){

        return Spring;
    }

    public Season getBetterSeason(){

        return Spring;
    }
}
